package com.example.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户画像
 * @TableName exam_portrait
 */
@TableName(value ="exam_portrait")
public class ExamPortrait implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 总体的综合评价
     */
    private String comprehensiveEvaluation;

    /**
     * 画像信息
     */
    private String infoStr;

    /**
     * 
     */
    private Long examId;

    /**
     * 
     */
    private Long cId;

    /**
     * 
     */
    private Long userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 总体的综合评价
     */
    public String getComprehensiveEvaluation() {
        return comprehensiveEvaluation;
    }

    /**
     * 总体的综合评价
     */
    public void setComprehensiveEvaluation(String comprehensiveEvaluation) {
        this.comprehensiveEvaluation = comprehensiveEvaluation;
    }

    /**
     * 画像信息
     */
    public String getInfoStr() {
        return infoStr;
    }

    /**
     * 画像信息
     */
    public void setInfoStr(String infoStr) {
        this.infoStr = infoStr;
    }

    /**
     * 
     */
    public Long getExamId() {
        return examId;
    }

    /**
     * 
     */
    public void setExamId(Long examId) {
        this.examId = examId;
    }

    /**
     * 
     */
    public Long getcId() {
        return cId;
    }

    /**
     * 
     */
    public void setcId(Long cId) {
        this.cId = cId;
    }

    /**
     * 
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 用户名称
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 用户名称
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamPortrait other = (ExamPortrait) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getComprehensiveEvaluation() == null ? other.getComprehensiveEvaluation() == null : this.getComprehensiveEvaluation().equals(other.getComprehensiveEvaluation()))
            && (this.getInfoStr() == null ? other.getInfoStr() == null : this.getInfoStr().equals(other.getInfoStr()))
            && (this.getExamId() == null ? other.getExamId() == null : this.getExamId().equals(other.getExamId()))
            && (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getComprehensiveEvaluation() == null) ? 0 : getComprehensiveEvaluation().hashCode());
        result = prime * result + ((getInfoStr() == null) ? 0 : getInfoStr().hashCode());
        result = prime * result + ((getExamId() == null) ? 0 : getExamId().hashCode());
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", comprehensiveEvaluation=").append(comprehensiveEvaluation);
        sb.append(", infoStr=").append(infoStr);
        sb.append(", examId=").append(examId);
        sb.append(", cId=").append(cId);
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}